<?php
# http://projects:8081/cdapp-2kt-api/api/capacity_record_save.php

include_once '_portal.php';

if (!$post) {
  die;
}

$start = $post->start;
$end = $post->end;
$content = json_stringify($post->content);
$sql = "INSERT INTO `2kt_capacity_record`(`start`, `end`, `content`) VALUES ('{$start}','{$end}','{$content}')";
exec_sql($sql);
output(['sql' => $sql]);